#include "CastSpellComponent.h"
#include "events.h"


void CastSpellComponent::onstart()
{
    REGIST_MEMBER_FUNCTION(getowner()->onCastSpell,CastSpellComponent::oncastspell);
}

void CastSpellComponent::onremove()
{
}

Character* CastSpellComponent::getowner()
{
    return (Character*)owner;
}

void CastSpellComponent::frameupdate()
{

}

void CastSpellComponent::oncastspell(void* param)
{

}
